projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
299a91b
)
Ignore deprecations for gdk_flush()
author
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 15:13:06 +0000
(15:13 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 23:28:50 +0000
(23:28 +0000)
When terminating the main loop, we're really trying to flush all
GdkDisplay connections, so it's actually a legitimate internal use
case.
gtk/gtkmain.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmain.c
b/gtk/gtkmain.c
index a9b9481c635f47f7ff7d370fec75260d985b43b5..74ce18009dcc3c572752070d18de36202285aa1f 100644
(file)
--- a/
gtk/gtkmain.c
+++ b/
gtk/gtkmain.c
@@
-1322,7
+1322,10
@@
gtk_main (void)
gdk_threads_leave ();
g_main_loop_run (loop);
gdk_threads_enter ();
+
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gdk_flush ();
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
main_loops = g_slist_remove (main_loops, loop);